#ifndef SPEECH_H
#define SPEECH_H

#include <QObject>
#include <QTextToSpeech>

class GameClientModel;
class L_Speech: public QObject
{
    Q_OBJECT
public:
    explicit L_Speech(QObject *parent = nullptr);
    virtual ~L_Speech();

public:
    int engineSelect(QString engineName);

    int locateSelect(int index);

    int voiceSelect(int index);

    int read(QString text);



public:

protected:
    QTextToSpeech *m_Speech;

    bool bVoiceLoadSuccess;
};

#endif // SPEECH_H
